// import functions for random numbers
import java.util.Random;
import java.*;

public class Die{
    static private int dieCount = 0;
    private int dieNumber;
    private int eyes;
    private java.util.Random r= new java.util.Random();
    int sideCount;
    /**
     * constructor
     */
    public Die(int sideCount){
        dieCount ++;
        dieNumber = dieCount;
        this.sideCount = sideCount;
    }
    
    /**
     * obtain a new number of eyes for this die
     */
    public void roll(){
        eyes = r.nextInt(sideCount) + 1;
        return;
    }
    
    /**
     * get the number of eyes of this die
     */
    public int getEyes(){
        return eyes;
    }
    
    static public void resetDieCount(){
        dieCount = 0;
    }
}